Note: This tutorial assumes that you have completed the previous tutorials: Msvc SDK.
(!) Please ask about problems and questions regarding this tutorial on answers.ros.org. Don't forget to include in your question the link to this page, the versions of your OS & ROS, and also add appropriate tags.

Msvc SDK Projects

Description: Setting up projects in Visual Studio that use the sdk.

Keywords: msvc win_ros

Tutorial Level: BEGINNER

  Show EOL distros: 

Not available

Not available.

Goal

Demonstrate what settings are needed for linking to the ros sdk.

Project

So far we've only had experience setting up simple Win32 projects (apps/libraries). If you have had success setting up other types of projects, please document that here.

Win32 Projects

Project Settings

There are three project settings that you'll need to modify:

  • C++->General->Additional Include Directories

  • Linker->General->Additional Library Directories

In both of these cases, simply point to the appropriate boost and ros-sdk directories that you wish to use.

  • Linker->Input->Additional Dependencies

Simply include any ros libs you intend to depend on here. As an example, on my system:

Additional Include Directories:

C:\ros-sdk\debug\include;%PROGRAMFILES%\boost\boost_1_44;%(AdditionalIncludeDirectories)

Additional Library Directories:

C:\ros-sdk\debug\bin;C:\ros-sdk\debug\lib;%PROGRAMFILES%\boost\boost_1_44;%(AdditionalIncludeDirectories)

Library Dependencies:

....;ros.lib;log4cxx.lib;cpp_common.lib;rosconsole.lib;roscpp_serialization.lib;roslib.lib;rostime.lib;XmlRpc.lib;%(AdditionalDependencies)

Coming soon...

Wiki: win_ros/graveyard/Tutorials/Msvc SDK Projects (last edited 2013-08-07 04:28:33 by DanielStonier)